package com.liziguo.lzgfp.server.domain;

import com.liziguo.lzgfp.server.entity.Forward;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: Liziguo
 * @Date: 2021/12/25 21:29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ForwardView {
    private int serverport;
    private String localhost;
    private int localport;

    public static ForwardView create(Forward forward) {
        return new ForwardView(forward.getServerport(), forward.getLocalhost(), forward.getLocalport());
    }
}
